/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="COR")
public class CorProteu implements Serializable{

    @Id
    @Column(name="COR_ST_CODIGO")
    private String corStCodigo;
    @Column(name="COR_ST_DESCRICAO")
    private String corStDescricao;

    public String getCorStCodigo() {
        return corStCodigo;
    }

    public void setCorStCodigo(String corStCodigo) {
        this.corStCodigo = corStCodigo;
    }

    public String getCorStDescricao() {
        return corStDescricao;
    }

    public void setCorStDescricao(String corStDescricao) {
        this.corStDescricao = corStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CorProteu other = (CorProteu) obj;
        if ((this.corStCodigo == null) ? (other.corStCodigo != null) : !this.corStCodigo.equals(other.corStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + (this.corStCodigo != null ? this.corStCodigo.hashCode() : 0);
        return hash;
    }


}
